<!DOCTYPE html>
<html>
<!--
  (C) by Michael Peter Christen, mc (at) yacy.net
  licensed under a Creative Commons Attribution 2.0 Generic License (CC-BY 2.0)
-->
<head>
  <title id="title"></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <!-- scary MS stuff ahead to prevent that IE runs in "IE=EmulateIE10" mode which cannot run our JS code for some reason -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<!--
if you don't see the glyphicons in firefox and you opened this file from a local filesystem,
then a CORS security setting in firefox caused that.
No other browser is that strict and there is no work around. To see the glyphicons in firefox,
open about:config and set security.fileuri.strict_origin_policy to ‘false.’
-->
  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
  <meta name="Content-Language" content="English, Englisch" />
  <meta name="keywords" content="YaCy HTTP search engine spider indexer java network open free download Mac Windows Linux Software development" />
  <meta name="description" content="Software HTTP Freeware Home Page" />
  <meta name="copyright" content="Michael Christen et al." />
  
  <!-- Ensure proper rendering and touch zooming on mobile devices -->
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- Bootstrap core CSS -->
  <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"/>

  <script src="bootstrap/js/jquery.min.js" type="text/javascript" ></script>
  <script src="bootstrap/js/bootstrap.min.js" type="text/javascript" ></script>
  
  <script src="js/setup.js" type="text/javascript"></script> <!-- customization -->

  <!-- Custom styles for this template, i.e. navigation (move this to base.css) -->
  <link href="css/bootstrap-base.css" rel="stylesheet"/>

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
    <script src="bootstrap/js/html5shiv.js"></script>
    <script src="bootstrap/js/respond.min.js"></script>
  <![endif]-->

  <!-- old css styles -->
  <link rel="stylesheet" type="text/css" media="all" href="css/base.css" />
  <link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
  <!--[if lt IE 6]>
   <link rel="stylesheet" type="text/css" media="screen" href="css/oldie.css" />
  <![endif]-->
  <!--[if lte IE 6.0]>
   <link rel="stylesheet" type="text/css" media="screen" href="css/ie6.css" />
  <![endif]-->
  <!--[if lte IE 7.0]>
   <link rel="stylesheet" type="text/css" media="screen" href="css/ie7.css" />
  <![endif]-->
  <script type="text/javascript" src="./bootstrap/js/typeahead.jquery.min.js"></script>
  <script type="text/javascript">
  //<!--
     var suggestMatcher = function() {
       return function opensearch(q, cb) {
       	 $.getJSON(suggestUrl + "&q="+ q, function(data) {
           	var parsed = [];
            for (var i = 0; i < data[0][1].length; i++) {
                var row = data[0][1][i];
                if (row) {
                    parsed[parsed.length] = {
                        data: [row],
                        value: row,
                        result: row
                    };
                };
            };
            cb(parsed);
          });
        };
      };
    $(document).ready(function() {
      $('#search').typeahead({hint:false,highlight:true,minLength:1}, {
    	name: 'states',
    	displayKey: 'value',
    	source: suggestMatcher()
      });
    });
  //-->
  </script>
  <style type="text/css">.twitter-typeahead {margin: 0px;padding: 0px;top:2px;}</style> <!-- fix for input window -->
</head>
  <body id="index" onload="document.getElementById('search').focus()">

      <!-- top navigation -->
      <div class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="container-fluid">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a id="navbar-homepage" class="navbar-brand" href="http://yacy.net" style="position:absolute;top:-6px;display:inline;white-space:nowrap;">
              <img id="logo" class="yacylogo" src="images/YaCyLogo2011_60.png" alt="YaCy" style="height:auto; width:auto; max-width:200px; max-height:32px;vertical-align:middle">
            </a>
            <span id="topmenu" style="position:absolute;top:12px;left:80px;display:inline;white-space:nowrap;font-size:2em;"></span>
          </div>
          <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
              <li id="header_help" class="dropdown">
                <a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-question-sign"></span></a>
                <ul class="dropdown-menu">
                  <li id="header_profile"><a href="yacysearch/about.html">About This Page</a></li>
                  <li id="header_tutorial"><a href="http://yacy.net/tutorials/">YaCy Tutorials</a></li>
                  <li class="divider"></li>
                  <li id="header_download"><a href="http://yacy.net" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Download YaCy</a></li>
                  <li id="header_community"><a href="http://forum.yacy.de" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Community (Web Forums)</a></li>
                  <li id="header_wiki"><a href="http://wiki.yacy.de" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Project Wiki</a></li>
                  <li id="header_git"><a href="https://github.com/yacy/yacy_search_server/commits/master" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Git Repository</a></li>
                  <li id="header_bugs"><a href="http://bugs.yacy.net" target="_blank"><i>external</i>&nbsp;&nbsp;&nbsp;Bugtracker</a></li>
                </ul>
              </li>
            </ul>
          </div>
        </div>
      </div>

<div class="container-fluid">
  <div class="starter-template">

	<h2 class="yacy"><a href="http://yacy.net" class="yacylogo" id="homepage"><img src="images/YaCyLogo2011_60.png" alt="YaCy" id="biglogo" style="margin: auto;"/></a></h2>
    <h2 class="yacy" id="greeting"></h2>

    <form class="search form-inline" action="yacysearch/index.html" method="get" id="searchform" accept-charset="UTF-8">
      <fieldset class="maininput">
        <div class="input-group">
          <input name="query" id="search" type="text" size="40" maxlength="80" value="" autofocus="autofocus" onFocus="this.select()" class="form-control searchinput typeahead" />
          <div class="input-group-btn">
            <button id="Enter" name="Enter" class="btn btn-primary" type="submit">Search</button>
          </div>
        </div>
        <input type="hidden" name="verify" value="false" />

        <input type="hidden" name="nav" value="filetype,protocol,hosts,authors,collections,namespace,topics,date" />
        <input type="hidden" name="startRecord" id="startRecord" value="0" />
        <input type="hidden" name="indexof" value="off" />
        <input type="hidden" name="meanCount" value="5" />

        <input type="hidden" name="resource" value="global" />
        <input type="hidden" name="prefermaskfilter" value="" />
        <input type="hidden" name="maximumRecords" value="10" />
        <input id="timezoneOffset" type="hidden" name="timezoneOffset" value="" />
      </fieldset>
	  <script >document.getElementById("timezoneOffset").value = new Date().getTimezoneOffset();</script>
    </form>
  </div>
</div>
<!-- modify content according to query url attributes -->
<script type="text/javascript">
document.getElementById("title").appendChild(document.createTextNode(headline));
document.getElementById("topmenu").appendChild(document.createTextNode(headline));
document.getElementById("greeting").appendChild(document.createTextNode(greeting));
document.getElementById("navbar-homepage").setAttribute("href", homepage);
document.getElementById("homepage").setAttribute("href", homepage);
document.getElementById("logo").setAttribute("src", logo.replace("../",""));
document.getElementById("biglogo").setAttribute("src", logo.replace("../",""));
document.getElementById("search").setAttribute("placeholder", queryplaceholder);
</script>
</body>
</html>